package com.zhangsr.zus.remoting.api.exchange;

import com.zhangsr.zus.common.URL;
import com.zhangsr.zus.remoting.api.exception.RemotingException;

/**
 * @Author: zhangsr
 */
public interface Exchanger {

    ExchangeServer bind(URL url, ExchangeHandler handler) throws RemotingException;

    ExchangeClient connect(URL url, ExchangeHandler handler) throws RemotingException;
}
